import 'package:get/get.dart';

import 'detail_state.dart';

class DetailLogic extends GetxController {

  final DetailState state = DetailState();

  @override
  void onReady() {
    // TODO: implement onReady
    super.onReady();
  }

  @override
  void onClose() {
    // TODO: implement onClose
    super.onClose();
  }

  changeAutoSendChecked(bool value) {
    state.isAutoSendMsg.value = value;
  }

  void selectGroup(bool selected,int index) {
    if(selected){
      state.selectGroup.value = index;
    }
  }
}
